package com.ocom.oauth.config;

import com.alibaba.fastjson.JSON;
import com.ocom.common.entity.master.EntityMngUserInfo;
import com.ocom.common.resp.Result;
import com.ocom.oauth.client.CompanyClientService;
import com.ocom.security.authentication.YoCiUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.*;

/**
 * 用户信息业务流程实现
 */
@Slf4j
@Service
public class UserDetailBiz implements UserDetailsService {

	@Autowired
	CompanyClientService companyClientService;

	@Override
	public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
			throw new UsernameNotFoundException("用户不存在或者密码错误");
	}
}
